package com.yang.core.model;

import com.zhy.base.jpa.model.DefaultModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * Created by xin7k
 * Date: 2019/12/17 0017
 */
@EqualsAndHashCode(callSuper = true)
@Data
@DynamicUpdate
@DynamicInsert
@Accessors(chain = true)
@Entity(name = "qb_scar")
public class Scar extends DefaultModel {

    /**
     * 订单所属用户Id
     */
    @Column(name = "user_id")
    private String userId;

    /*
     * 商品Id
     * */
    @Column(name = "product_id")
    private String productId;

}
